﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Productive.Assets
{
    public class AuthoritiesItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string authority { get; set; }
    }

    public class User_info
    {
        /// <summary>
        /// 
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string deptId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string realName { get; set; }
        /// <summary>
        /// 办公室
        /// </summary>
        public string deptName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string avatar { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string username { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string password { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string enabled { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string accountNonExpired { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string credentialsNonExpired { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string accountNonLocked { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<AuthoritiesItem> authorities { get; set; }
    }

    public class AuthRoot
    {
        /// <summary>
        /// 
        /// </summary>
        public string license { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public User_info user_info { get; set; }

        public string realName { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> scope { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string active { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> authorities { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string client_id { get; set; }
    }
}
